%h2 Problems

%table.problems
  %tr
    %td= link_to "id", :order => 'id'
    %td= link_to "Name", :order => 'name'
    %td= link_to "Letter", :order=>'letter'
    %td= link_to "Info", :order=>'info'
    %td= link_to "Time limit", :order=>'time_limit'
    %td Info
    %td Status
    %td
    %td
  - for problem in @problems
    %tr
      %td= problem.id
      %td= link_to problem.name, :controller => :problems, :action => :show, :id => problem.id
      %td= problem.letter
      %td=h problem.about
      %td= problem.time_limit
      / TODO: Направи това да работи
      %td= link_to "submit", :controller => :runs, :action => :new, :problem_id => problem.problem_id
      / TODO: Сложи тези методи в problem_controller
      %td= link_to "runs", :controller => :runs, :problem_id => problem
      %td= link_to "Description", :controller => :problems, :id => problem.id, :action => :description


